package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.OrangeProductMapper;
import com.atmilan.quartz.model.entity.orange.OrangeProduct;
import com.atmilan.quartz.service.IOrangeProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * orange商品数据源 服务实现类
 * </p>
 *
 * @author wuzp
 * @since 2021-10-20
 */
@Service
public class OrangeProductServiceImpl extends ServiceImpl<OrangeProductMapper, OrangeProduct> implements IOrangeProductService {

    @Autowired
    OrangeProductMapper orangeProductMapper;

    @Override
    public void deleteAll() {
        orangeProductMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        orangeProductMapper.deleteProductBack();
        orangeProductMapper.copyProductBack();
    }

}
